<template>
  <ckeditor5 v-model="content" :editor="ClassicEditor" :config="config"/>
</template>
<script setup>
  import CkEditor from '@ckeditor/ckeditor5-vue';
  import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'
  // 段落插件
  import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph'
  import EssentialsPlugin from '@ckeditor/ckeditor5-essentials/src/essentials'
  import {ref,reactive} from "vue";
  const content = ref('');
  const ckeditor5 = CkEditor.component;
  const config = reactive({
    plugins: [
        ParagraphPlugin,
        EssentialsPlugin,
    ],
  })
</script>
<style scoped>

</style>
